<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
    <% String path=request.getContextPath(); String basePath=request.getScheme() + "://" + request.getServerName() + ":"
        + request.getServerPort() + path + "/" ; %>

        <!DOCTYPE html>
        <html>

        <head>
            <base href="<%=basePath%>">

            <title>检验批表</title>

            <meta http-equiv="pragma" content="no-cache">
            <meta http-equiv="cache-control" content="no-cache">
            <meta http-equiv="expires" content="0">
            <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
            <meta http-equiv="description" content="This is my page">
            <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->

        </head>

        <body>
            <%@ include file="/WEB-INF/jsp/common/header.jsp" %>
                <%@ include file="/WEB-INF/jsp/common/loadDiv.jsp" %>

                    <script type="text/javascript">
                        $(function () {
                            $('#startTime').datebox('setValue', getBeforeCurrentDate30Days());
                            $('#endTime').datebox('setValue', getNowFormatDate());
                            bindgrid();
                        });
                    </script>
                    <script>
                        function del(node) {
                            $.ajax({
                                type: "delete",
                                url: 'qm/parts/delete?' + 'parId=' + parId,
                                //                dataType: "xml",
                                success: function (data) {
                                    $.messager.alert('消息', data.msg);
                                    $('#add').window('close');
                                    bindgrid();
                                },
                                error: function (XMLHttpRequest, textStatus, errorThrown) {
                                    $.messager.alert('消息', errorThrown);
                                }
                            });
                        }

                        function editrow() {
                            //编辑用户
                            var row = $('#dg').datagrid('getSelected');
                            if (row) {
                                $('#add').window('open');
                                $('#fm').form('load', row);

                            } else {
                                $.messager.alert('消息', '请选中一条数据');
                            }
                        }
                    </script>
                    <script>
                        /**
                         *  按条件查询报价列表
                         */
                        function selectList() {
                            var startTime = $('#startTime').datebox('getValue')
                            var endTime = $('#endTime').datebox('getValue')
                            var status = $('#status').combobox('getValue');
                            var dg = $('#dg');
                            dg.datagrid('enableFilter');
                            dg.datagrid('load', {
                                startTime: startTime ? startTime : '',
                                endTime: endTime ? endTime : '',
                                status: status ? status : ''
                            });
                        }

                        function bindgrid() {
                            var startTime = $('#startTime').datebox('getValue')
                            var endTime = $('#endTime').datebox('getValue')
                            var status = $('#status').combobox('getValue');
                            $('#dg').datagrid(
                                {
                                    title: '',
                                    queryParams: {
                                        startTime: startTime,
                                        endTime: endTime,
                                        status: status
                                    },
                                    url: "qm/parts/selectList",
                                    iconCls: 'icon-application',
                                    width: getWidth(0.98),
                                    height: 400,
                                    filterDelay: 0,
                                    nowrap: true,
                                    rownumbers: true,
                                    animate: false,
                                    collapsible: false,
                                    clientPaging: false,
                                    remoteFilter: true,
                                    singleSelect: true,
                                    pagination: true,
                                    remoteSort: true,
                                    frozenColumns: [[]],
                                    columns: [[{
                                        field: 'parId',
                                        title: 'par_id',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'interfaceId',
                                        title: '接口id',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckCode',
                                        title: '检验批号编号',
                                        sortable: true,
                                        formatter: function (val, rec, index) {
                                            return '<a href="javascript:void(0)" onclick="setDetail(' + index +
                                                ')">' + (val ? val : '') + '</a>'
                                        }
                                    }, {
                                        field: 'parFactory',
                                        title: '工厂',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parFactoryDetail',
                                        title: '工厂描述',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckSourse',
                                        title: '检验批来源',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckType',
                                        title: '检验类型',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'mmCode',
                                        title: '物料编号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCode',
                                        title: '批次编号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parAddress',
                                        title: '存储地点',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parGroup',
                                        title: '组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parGroupNum',
                                        title: '组计数器',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'mmDetail',
                                        title: '物料描述',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckStartDate',
                                        title: '检验开始日期',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckEndDate',
                                        title: '检验结束日期',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parUse',
                                        title: '用途',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parCheckNum',
                                        title: '检验批数量',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parSupplyCode',
                                        title: '供应商',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parSupplyName',
                                        title: '供应商名称',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parProof',
                                        title: '采购凭证',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parProjectNum',
                                        title: '采购凭证的项目编号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'mmProof',
                                        title: '物料凭证',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'mmProofProject',
                                        title: '物料凭证中的项目',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'createTime',
                                        title: '创建时间',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'createName',
                                        title: '创建人姓名',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'createId',
                                        title: '创建人',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'updateId',
                                        title: '修改人',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'updateName',
                                        title: '修改人姓名',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'updateTime',
                                        title: '修改时间',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'delFlag',
                                        title: '是否删除',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'status',
                                        title: '状态',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return +unescape(val) == '1' ? '已提交' : '待提交';
                                        }
                                    }, {
                                        field: 'remark',
                                        title: 'remark',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parDeliveryOrder',
                                        title: '交货单',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parDeliveryOrderNum',
                                        title: '交货单行',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'carNum',
                                        title: '车牌号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parPoundsNum',
                                        title: '磅单号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parInspector',
                                        title: '检验员',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parPracticalChenkStartDate',
                                        title: '实际检验开始时间',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parPracticalChenkEndDate',
                                        title: '实际检验结束时间',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parResultStatus',
                                        title: '结果记录状态code',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parResultStatusText',
                                        title: '结果记录状态文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parUseCode',
                                        title: '使用决策代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parUseText',
                                        title: '使用决策文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parUseCodeGroup',
                                        title: '使用决策代码组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugTypeCodeGroup',
                                        title: '缺陷类型代码组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugTypeCodeGroupText',
                                        title: '缺陷类型代码组文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugTypeCode',
                                        title: '缺陷类型代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugTypeText',
                                        title: '缺陷类型文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugAddressCode',
                                        title: '缺陷位置代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugAddressText',
                                        title: '缺陷位置文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugAddressCodeGroup',
                                        title: '缺陷位置代码组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugAddressGroupText',
                                        title: '缺陷位置代码组文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugClassCode',
                                        title: '缺陷类代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parBugClassText',
                                        title: '缺陷类文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }]],
                                    toolbar: [{
                                        text: '增加',
                                        iconCls: 'icon-add',
                                        handler: function () {
                                            $('#fm').form('clear');
                                            $('#add').window('open');
                                        }
                                    },
                                        '-',
                                    {
                                        text: '编辑',
                                        iconCls: 'icon-edit',
                                        handler: function () {
                                            editrow()
                                        }
                                    },
                                        '-',
                                    {
                                        text: '删除',
                                        iconCls: 'icon-cancel',
                                        handler: function () {
                                            var row = $('#dg').datagrid(
                                                'getSelected');
                                            if (row) {
                                                $.messager.confirm('提示', '确定要删除这个吗?', function (r) {
                                                    if (r) {
                                                        del(row);
                                                    }
                                                });
                                            }
                                        }
                                    }],
                                    onLoadSuccess: function () {
                                    },
                                    onDblClickRow: function () {
                                        editrow();
                                    }
                                });
                            $('#dg').datagrid('enableFilter');
                        }
                    </script>
                    <style scoped="scoped">
                        .textbox {
                            height: 20px;
                            margin: 0;
                            padding: 0 2px;
                            box-sizing: content-box;
                        }

                        /*.table tr {
            height: 15px;
        }*/
                    </style>
                    <div class="query_criteria" id="query_criteria">
                        <div style="margin: 5px 0px">
                            <%-- 搜索框 --%>
                                <label style="font-size: 12px;">创建时间：</label> <input class="easyui-datebox"
                                    name="startTime" id="startTime"
                                    data-options="required:true,showSeconds:false,formatter:myformatter,parser:myparser"
                                    value="" style="width: 150px"> <label style="font-size: 10px;">~</label> <input
                                    class="easyui-datebox" name="endTime" id="endTime"
                                    data-options="required:true,showSeconds:false,formatter:myformatter,parser:myparser"
                                    style="width: 150px" /> <label
                                    style="margin-left: 20px; font-size: 12px;">状态：</label>
                                <input class="easyui-combobox" id="status" name="status" style="width: 80px;"
                                    data-options="valueField: 'value',editable:false,
						textField: 'label',panelHeight:'auto',data: [{
							label: '待提交',
							value: '0',
							selected:true
						},{
							label: '已提交',
							value: '1'
						}]">
                                </select> <a id="search" style="margin-left: 30px" href="javascript:void(0)"
                                    class="easyui-linkbutton" data-options="iconCls:'icon-search'"
                                    onclick="selectList()">查询</a>
                        </div>

                        <table id="dg"></table>
                        <div id="partDetailInfo" class="easyui-window" closed="true" modal="true" title="检验特性详情"
                            style="width: 900px; height: 430px; padding: 10px 20px">
                            <form id="partDetailFm" class="ssec-form">
                                <table class="table">
                                    <tr>
                                        <td>
                                            <div class="ssec-label">定量/定性特性：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaPerform" name="deaPerform" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">主检验特征编号：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaMainCode" name="deaMainCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">主检验特征：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaMain" name="deaMain" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">检验特性的短文本：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaTxt" name="deaTxt" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">规范下限：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaLower" name="deaLower" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">规范上限：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaUp" name="deaUp" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">检查目标值：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaTarget" name="deaTarget" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">采样过程：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaSamping" name="deaSamping" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">记录缺陷数：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaBugNum" name="deaBugNum" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">总计结果：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaTotal" name="deaTotal" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">单个结果：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaSingle" name="deaSingle" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">单位分组：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaGroup" name="deaGroup" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">小数位：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaDecimal" name="deaDecimal" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">测量单位：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaMeasure" name="deaMeasure" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">目标值：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaObject" name="deaObject" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>

                                    </tr>
                                    <tr>

                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">实际上限：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaRealUp" name="deaRealUp" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">实际下限：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaRealLower" name="deaRealLower" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">检验方法编号：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaMethodCode" name="deaMethodCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">检验方法描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaMethodText" name="deaMethodText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">检验方法工厂：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaFactory" name="deaFactory" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">检验方法版本：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaVersion" name="deaVersion" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">采样过程编号：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaProcedureCode" name="deaProcedureCode"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        <td>
                                            <div class="ssec-label">采样过程编号描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaProcedureDetail" name="deaProcedureDetail"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        </td>
                                        <td>
                                            <div class="ssec-label">采样计量单位：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaUnit" name="deaUnit" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">基本采样数量：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaBasisNum" name="deaBasisNum" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">采样大小：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaSamplingSize" name="deaSamplingSize"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">采样确定规则的标识：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaRuleTag" name="deaRuleTag" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">客户批次号：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaClientBatch" name="deaClientBatch" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">分配的代码组或选择集 ：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaCodeGroup" name="deaCodeGroup" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">选择集的简要描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaCodeText" name="deaCodeText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">分配的选择集工厂：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaSelectFactory" name="deaSelectFactory"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">创建时间：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="createTime" name="createTime" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">创建人姓名：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="createName" name="createName" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">创建人：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="createId" name="createId" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">修改人：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="updateId" name="updateId" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">修改人姓名：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="updateName" name="updateName" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">修改时间：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="updateTime" name="updateTime" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">是否删除：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="delFlag" name="delFlag" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">状态：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="status" name="status" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">检验特性的结果属性code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="resultCode" name="resultCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">检验特性的结果属性描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="resultText" name="resultText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">使用决策代码：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="useDecisionCode" name="useDecisionCode"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">使用决策描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="useDecisionText" name="useDecisionText"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">使用决策代码组：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="useDecisionGroup" name="useDecisionGroup"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷类型code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawCode" name="flawCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">缺陷类型描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawText" name="flawText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷类型代码组：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawGroup" name="flawGroup" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷类型代码组描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawGroupText" name="flawGroupText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">评估code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="assessCode" name="assessCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">评估描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="assessText" name="assessText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">代码code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="code" name="code" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">代码描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="codeText" name="codeText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷位置code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawAddressCode" name="flawAddressCode"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷位置描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawAddressText" name="flawAddressText"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">缺陷位置代码组：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawAddressGroup" name="flawAddressGroup"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">工序编号：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="deaProcessNum" name="deaProcessNum" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷位置代码组描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawAddressGroupText" name="flawAddressGroupText"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">缺陷类code：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawClassCode" name="flawClassCode" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷类文本：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawClassText" name="flawClassText" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">有效计量值的平均值：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="validVariableAvg" name="validVariableAvg"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">已检验采样单元数量：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="samplingUnitsNum" name="samplingUnitsNum"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">检验描述：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="checkDescr" name="checkDescr" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">一般信息：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="generalInfor" name="generalInfor" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="ssec-label">已检验：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="inspected" name="inspected" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">不合格：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="disqualification" name="disqualification"
                                                    class="easyui-textbox" data-options="required:true" />
                                            </div>
                                        </td>
                                        <td>
                                            <div class="ssec-label">缺陷数：</div>
                                        </td>
                                        <td>
                                            <div class="ssec-text normal">
                                                <input id="flawNum" name="flawNum" class="easyui-textbox"
                                                    data-options="required:true" />
                                            </div>
                                        </td>
                                    </tr>
                                </table>

                            </form>
                        </div>
                        <div id="add" class="easyui-window" closed="true" modal="true" title="检验批信息"
                            style="width: 900px; height: 430px; padding: 10px 20px">
                            <form id="fm" class="ssec-form">
                                <div id="tabs" class="easyui-tabs" style="width: 855px; height: 350px">
                                    <div title="基本信息" style="padding: 5px;">
                                        <table class="table">
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">par_id：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parId" name="parId" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">接口id：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="interfaceId" name="interfaceId"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">工厂：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parFactory" name="parFactory" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">工厂描述：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parFactoryDetail" name="parFactoryDetail"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">检验批号编号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckCode" name="parCheckCode"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">检验批来源：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckSourse" name="parCheckSourse"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">检验类型：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckType" name="parCheckType"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">物料编号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="mmCode" name="mmCode" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">批次编号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCode" name="parCode" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">组：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parGroup" name="parGroup" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">存储地点：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parAddress" name="parAddress" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">组计数器：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parGroupNum" name="parGroupNum"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">物料描述：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="mmDetail" name="mmDetail" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">检验开始日期：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckStartDate" name="parCheckStartDate"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">检验结束日期：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckEndDate" name="parCheckEndDate"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">用途：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parUse" name="parUse" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">检验批数量：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parCheckNum" name="parCheckNum"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">供应商：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parSupplyCode" name="parSupplyCode"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">供应商名称：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parSupplyName" name="parSupplyName"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">采购凭证：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parProof" name="parProof" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">采购凭证的项目编号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parProjectNum" name="parProjectNum"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">物料凭证：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="mmProof" name="mmProof" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">物料凭证中的项目：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="mmProofProject" name="mmProofProject"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">创建时间：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="createTime" name="createTime" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">创建人姓名：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="createName" name="createName" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">创建人：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="createId" name="createId" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">修改人：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="updateId" name="updateId" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">修改人姓名：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="updateName" name="updateName" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">修改时间：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="updateTime" name="updateTime" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">是否删除：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="delFlag" name="delFlag" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">状态：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="status" name="status" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">remark：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="remark" name="remark" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">交货单：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parDeliveryOrder" name="parDeliveryOrder"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">交货单行：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parDeliveryOrderNum" name="parDeliveryOrderNum"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">车牌号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="carNum" name="carNum" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">磅单号：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parPoundsNum" name="parPoundsNum"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">检验员：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parInspector" name="parInspector"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">实际检验开始时间：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parPracticalChenkStartDate"
                                                            name="parPracticalChenkStartDate" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">实际检验结束时间：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parPracticalChenkEndDate"
                                                            name="parPracticalChenkEndDate" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">结果记录状态code：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parResultStatus" name="parResultStatus"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">结果记录状态文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parResultStatusText" name="parResultStatusText"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">使用决策代码：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parUseCode" name="parUseCode" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">使用决策文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parUseText" name="parUseText" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">使用决策代码组：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parUseCodeGroup" name="parUseCodeGroup"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷类型代码组：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugTypeCodeGroup" name="parBugTypeCodeGroup"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">缺陷类型代码组文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugTypeCodeGroupText"
                                                            name="parBugTypeCodeGroupText" class="easyui-textbox"
                                                            data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷类型代码：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugTypeCode" name="parBugTypeCode"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷类型文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugTypeText" name="parBugTypeText"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="ssec-label">缺陷位置代码：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugAddressCode" name="parBugAddressCode"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷位置文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugAddressText" name="parBugAddressText"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷位置代码组：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugAddressCodeGroup" name="parBugAddressCodeGroup"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td>
                                                    <div class="ssec-label">缺陷位置代码组文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugAddressGroupText" name="parBugAddressGroupText"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷类代码：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugClassCode" name="parBugClassCode"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div class="ssec-label">缺陷类文本：</div>
                                                </td>
                                                <td>
                                                    <div class="ssec-text normal">
                                                        <input id="parBugClassText" name="parBugClassText"
                                                            class="easyui-textbox" data-options="required:true" />
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div title="工序列表" style="padding: 5px;">
                                        <table class="table" id="processTable"></table>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div id="partDetaillWindow" class="easyui-window" closed="true" modal="true" title="询价结果"
                            style="width: 930px; height: 400px; padding: 5px 5px; top: 50px;">
                            <table id="detailsList"></table>
                        </div>
                    </div>
        </body>
        <script>
            /**
             * 获取详情
             */
            function setDetail(index) {
                const rows = $('#dg').datagrid('getRows');
                let row = rows[index];
                if (row) {
                    getProcessList(row)
                } else {
                    $.messager.alert('消息', '请选中一条数据');
                }

            }

            function getProcessList(row) {
                let parId = row.parId
                $.ajax({
                    type: "get",
                    dataType: "json",
                    url: 'qm/parts/selectInfor?parId=' + parId,
                    success: function (data) {
                        if (data.code != 60200) {
                            $.messager.alert('消息', data.msg);
                        } else {
                            let partsData = data.data
                            $('#add').window('open');
                            $('#processTable').datagrid(
                                {
                                    title: '工序列表',
                                    data: partsData.processes,
                                    //url: "qm/process/selectList",
                                    iconCls: 'icon-application',
                                    width: getWidth(0.98),
                                    height: 415,
                                    nowrap: true,
                                    rownumbers: true,
                                    animate: false,
                                    collapsible: false,
                                    clientPaging: false,
                                    remoteFilter: true,
                                    singleSelect: true,
                                    pagination: true,
                                    remoteSort: true,
                                    frozenColumns: [[]],
                                    columns: [[{
                                        field: 'procId',
                                        title: '工序id',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'parId',
                                        title: 'par_id',
                                        sortable: true,
                                        hidden: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procText',
                                        title: '工序描述',
                                        sortable: true,
                                        formatter: function (val, rec, index) {
                                            return '<a href="javascript:void(0)" onclick="setProcessDetail(' + index +
                                                ')">' + (val ? val : '') + '</a>'
                                        }
                                    }, {
                                        field: 'procNum',
                                        title: '工序编号',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procInspector',
                                        title: '检验员',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procCheckStartDate',
                                        title: '检验开始日期',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procCheckEndDate',
                                        title: '检验结束日期',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugClassCode',
                                        title: '缺陷类的代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugTypeCode',
                                        title: '缺陷类型代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugTypeText',
                                        title: '缺陷类型文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugTypeGroup',
                                        title: '缺陷类型代码组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugTypeGroupText',
                                        title: '缺陷类型代码组文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugAddressCode',
                                        title: '缺陷位置代码',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugAddressText',
                                        title: '缺陷位置文本',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugAddressGroup',
                                        title: '缺陷位置代码组',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }, {
                                        field: 'procBugAddressGroupText',
                                        title: '缺陷位置代码组描述',
                                        sortable: true,
                                        formatter: function (val, rec) {
                                            return val ? unescape(val) : '';
                                        }
                                    }]]
                                });
                            $('#processTable').datagrid('enableFilter');
                            $('#fm').form('load', row);
                        }
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {

                    }
                })
            }

            /**
             * 查看工序详情
             */
            function setProcessDetail(index) {
                const rows = $('#processTable').datagrid('getRows');
                let row = rows[index];
                if (row) {
                    getPartPropertiesList(row)
                } else {
                    $.messager.alert('消息', '请选中一条数据');
                }
            }

            function getPartPropertiesList(row) {
                let parId = row.parId
                let procId = row.procId
                $.ajax({
                    type: 'post',
                    url: 'qm/parts/detail/selectList',
                    data: {
                        parId: parId,
                        procId: procId
                    },
                    dataType: 'json',
                    success: function (data) {
                        if (data.code == 60200) {
                            setPartDetailListDG(data.rows)
                            $('#partDetaillWindow').window('open')
                        } else {
                            $.messager.alert('消息', data.msg)
                        }
                    }
                })
            }

            function setPartDetailListDG(data) {
                $('#detailsList').datagrid(
                    {
                        title: '检验特性列表',
                        queryParams: {
                            startTime: startTime,
                            endTime: endTime,
                            status: status
                        },
                        data: data,
                        iconCls: 'icon-application',
                        width: 850,
                        height: 300,
                        nowrap: true,
                        rownumbers: true,
                        animate: false,
                        collapsible: false,
                        clientPaging: false,
                        remoteFilter: true,
                        singleSelect: true,
                        pagination: true,
                        remoteSort: true,
                        frozenColumns: [[]],
                        columns: [[{
                            field: 'deaId',
                            title: '主键',
                            sortable: true,
                            hidden: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'procId',
                            title: '工序id',
                            sortable: true,
                            hidden: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'parId',
                            title: 'par_id',
                            sortable: true,
                            hidden: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaPerform',
                            title: '定量/定性特性',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaMainCode',
                            title: '主检验特征编号',
                            sortable: true,
                            formatter: function (val, rec, index) {
                                return '<a href="javascript:void(0)" onclick="setPartDetail(' + index +
                                    ')">' + (val ? val : '') + '</a>'
                            }
                        }, {
                            field: 'deaMain',
                            title: '主检验特征',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaTxt',
                            title: '检验特性的短文本',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaLower',
                            title: '规范下限',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaUp',
                            title: '规范上限',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaTarget',
                            title: '检查目标值',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaSamping',
                            title: '采样过程',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaBugNum',
                            title: '记录缺陷数',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaTotal',
                            title: '总计结果',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaSingle',
                            title: '单个结果',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaGroup',
                            title: '单位分组',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaDecimal',
                            title: '小数位',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaMeasure',
                            title: '测量单位',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaObject',
                            title: '目标值',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaRealUp',
                            title: '实际上限',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaRealLower',
                            title: '实际下限',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaMethodCode',
                            title: '检验方法编号',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaMethodText',
                            title: '检验方法描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaFactory',
                            title: '检验方法工厂',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaVersion',
                            title: '检验方法版本',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaProcedureCode',
                            title: '采样过程编号',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaProcedureDetail',
                            title: '采样过程编号描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaUnit',
                            title: '采样计量单位',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaBasisNum',
                            title: '基本采样数量',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaSamplingSize',
                            title: '采样大小',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaRuleTag',
                            title: '采样确定规则的标识',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaClientBatch',
                            title: '客户批次号',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaCodeGroup',
                            title: '分配的代码组或选择集 ',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaCodeText',
                            title: '选择集的简要描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaSelectFactory',
                            title: '分配的选择集工厂',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaResult',
                            title: '检验特性的结果属性',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaUse',
                            title: '使用决策代码',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaBugClass',
                            title: '缺陷类',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaBugType',
                            title: '缺陷类型',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaBugAddress',
                            title: '缺陷位置',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'dreaAssessType',
                            title: '评估',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaCode',
                            title: '代码',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'createTime',
                            title: '创建时间',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'createName',
                            title: '创建人姓名',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'createId',
                            title: '创建人',
                            sortable: true,
                            hidden: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'updateId',
                            title: '修改人',
                            sortable: true,
                            hidden: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'updateName',
                            title: '修改人姓名',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'updateTime',
                            title: '修改时间',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'delFlag',
                            title: '是否删除',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'status',
                            title: '状态',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'remark',
                            title: 'remark',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'resultCode',
                            title: '检验特性的结果属性code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'resultText',
                            title: '检验特性的结果属性描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'useDecisionCode',
                            title: '使用决策代码',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'useDecisionText',
                            title: '使用决策描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'useDecisionGroup',
                            title: '使用决策代码组',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawCode',
                            title: '缺陷类型code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawText',
                            title: '缺陷类型描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawGroup',
                            title: '缺陷类型代码组',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawGroupText',
                            title: '缺陷类型代码组描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'assessCode',
                            title: '评估code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'assessText',
                            title: '评估描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'code',
                            title: '代码code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'codeText',
                            title: '代码描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawAddressCode',
                            title: '缺陷位置code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawAddressText',
                            title: '缺陷位置描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawAddressGroup',
                            title: '缺陷位置代码组',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'deaProcessNum',
                            title: '工序编号',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawAddressGroupText',
                            title: '缺陷位置代码组描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawClassCode',
                            title: '缺陷类code',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawClassText',
                            title: '缺陷类文本',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'validVariableAvg',
                            title: '有效计量值的平均值',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'samplingUnitsNum',
                            title: '已检验采样单元数量',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'checkDescr',
                            title: '检验描述',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'generalInfor',
                            title: '一般信息',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'inspected',
                            title: '已检验',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'disqualification',
                            title: '不合格',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }, {
                            field: 'flawNum',
                            title: '缺陷数',
                            sortable: true,
                            formatter: function (val, rec) {
                                return val ? unescape(val) : '';
                            }
                        }]
                        ]
                    });
                $('#detailsList').datagrid('enableFilter');
            }

            function setPartDetail(index) {
                const rows = $('#detailsList').datagrid('getRows');
                let row = rows[index];
                if (row) {
                    $('#partDetailInfo').window('open');
                    $('#partDetailFm').form('load', row);

                } else {
                    $.messager.alert('消息', '请选中一条数据');
                }
            }
        </script>

        </html>